package com.sdgs.paas.sdk.core.web.client;

import org.springframework.http.client.ClientHttpRequestFactory;
import org.springframework.http.client.SimpleClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

/**
 * SDK REST请求操作对象
 *
 * @author wjj
 *
 */
public class PaasRestTemplate extends RestTemplate {

	private String type;
	
	public PaasRestTemplate(){
		this(new SimpleClientHttpRequestFactory(),"internal");
	}

	public PaasRestTemplate(ClientHttpRequestFactory requestFactory, String type){
		super(requestFactory);
		this.setType(type);
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	
}